﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
// Copyright (C) 2021 kingerrobot
// 版权所有。 
//
// 文件名：BProdSkuProduct
// 文件功能描述：
//
// 创建者：名字 (zzl)
// 时间：2021/12/9 8:33:13
//
// 修改人：
// 时间：
// 修改说明：
// 版本：V1.0.0
//----------------------------------------------------------------*/
#endregion
namespace KingerRobot.MexicoSailunMDC.SpiService;

interface ILogScanner
{
    /// <summary>
    /// 添加扫描
    /// </summary>
    /// <param name="scannerLocId"></param>
    /// <param name="productCode"></param>
    /// <param name="tireCount"></param>
    /// <returns></returns>
    int AddLogScanner(long scannerLocId, string productCode, long tireCount);

    /// <summary>
    /// 获取扫描信息
    /// </summary>
    /// <param name="productCode"></param>
    /// <param name="tireCount"></param>
    /// <returns></returns>
    POLogScanner GetLogScannerByProductCode(string productCode, long tireCount);
    /// <summary>
    /// 修改状态
    /// </summary>
    /// <param name="productCode"></param>
    /// <param name="tireCount"></param>
    /// <param name="status"></param>
    /// <param name="remarkMemo"></param>
    /// <returns></returns>
    int UpdateLogScannerByProductCode(string productCode, long tireCount, int status, string remarkMemo);

    /// <summary>
    /// 执行成功
    /// </summary>
    /// <param name="productCode"></param>
    /// <param name="tireCount"></param>
    /// <param name="status"></param>
    /// <returns></returns>
    int UpdateLogScannerSuccessByProductCode(string productCode, long tireCount, int status);
    /// <summary>
    /// 执行成功
    /// </summary>
    /// <param name="productCode"></param>
    /// <param name="status"></param>
    /// <returns></returns>
    int UpdateLogScannerSuccessByProductCodeV2(string productCode, int status);
}
